import { WeaTools } from 'ecCom';

export const getDatas = params => WeaTools.callApi('/', 'GET', params);

export const doSearch = params => WeaTools.callApi('/api/album/frame/list', 'GET', params);

export const getAlbumPhotoAllById = params => WeaTools.callApi('/api/album/frame/getAlbumPhotoAllById', 'post', params);

export const getAlbumSizeInfo = params => WeaTools.callApi('/api/album/frame/getAlbumSizeInfo', 'post', params);

export const getAlbumOperatelevel = params => WeaTools.callApi('/api/album/frame/getAlbumOperatelevel', 'post', params);

export const getTreeData = params => WeaTools.callApi('/api/album/frame/treeNode', 'GET', params);


// 高级搜索
export const getConditionInfo = params => WeaTools.callApi('/api/album/frame/condition', 'GET', params);

export const getRightMenu = params => WeaTools.callApi('/api/album/frame/rightMenu', 'GET', params);

// 根据传入的弹出框类型获取对应的按钮和字段
export const getchooseDialogCon = params => WeaTools.callApi('/api/album/frame/chooseDialog', 'post', params);

// 保存dialog信息
export const saveDialog1 = params => WeaTools.callApi('/api/album/frame/saveDialog1', 'GET', params);

// 获取提示信息
export const doDeleteWarm = params => WeaTools.callApi('/api/album/frame/deleteWarm', 'GET', params);

// 删除
export const doDelete = params => WeaTools.callApi('/api/album/frame/delete', 'GET', params);

// 获取是否是文件夹
export const getIsFolder = params => WeaTools.callApi('/api/album/frame/getIsFolder', 'GET', params);

